
## End User configurable options ###
SHELL = @SHELL@

@VPATH@
# Installation directories
prefix       = @prefix@
exec_prefix  = @exec_prefix@
bindir       = @bindir@
includedir   = @includedir@
libdir       = @libdir@
# Build directories
libbuild_dir = @libbuild_dir@
top_srcdir   = @top_srcdir@
srcdir       = @srcdir@

JC           = @JC@
JAR          = @JAR@
RM           = @RM@

TARGET  = $(libbuild_dir)/drawable.jar
PACKAGE = base.drawable
SRC     = ColorAlpha.java Topology.java Method.java \
          TimeBoundingBox.java Coord.java CoordPixelXform.java \
          InfoType.java InfoValue.java \
          CategoryRatios.java CategorySummary.java \
          Category.java CategoryWeight.java \
          DrawnBox.java DrawnBoxSet.java \
          InfoBox.java Drawable.java NestingStacks.java \
          Primitive.java Shadow.java Composite.java \
          Kind.java YCoordMap.java InputAPI.java

OBJ     = $(SRC:.java=.class)

.SUFFIXES:      .java .class .jar

# CLASSDIR is where classfiles are located, all counted from the top
SRCDIR     = $(top_srcdir)
CLASSDIR   = ../..
CLASSPATH  = ../..
PKGDIR     = base/drawable

JCFLAGS = -sourcepath @JPATH_START@$(SRCDIR)@JPATH_FINAL@ -classpath @JPATH_START@$(CLASSPATH)@JPATH_FINAL@ -d @JPATH_START@$(CLASSDIR)@JPATH_FINAL@ @JFLAGS@

.java.class:
	$(JC) $(JCFLAGS) $(JFLAGS) @JPATH_START@$<@JPATH_FINAL@

ALL: $(OBJ)

$(TARGET): $(OBJ)
	cd $(CLASSDIR) && \
	jarfile=@JPATH_START@$@@JPATH_FINAL@ && \
	classdir_prefix=@JPATH_START@$(PKGDIR)/@JPATH_FINAL@ && \
	$(JAR) $(JARFLAGS)cf $${jarfile} $${classdir_prefix}*.class

clean:
	cd $(CLASSDIR) && \
	$(RM) $(PKGDIR)/*.class

rmlib:
	$(RM) $(TARGET)

realclean: clean rmlib

distclean: realclean
	@-$(RM) Makefile
